package com.hycreate.platform.common.enums;

/**
 * 审核状态枚举类型
 * @author llw
 * @version 2016-09-26
 */
public enum AuditStatus {
	NOT("1", "未审核"),
	PASS("2", "审核通过"),
	REJECT("3","审核拒绝");
	/**
	 * 值 String型
	 */
	private final String value;
	/**
	 * 描述 String型
	 */
	private final String description;

	AuditStatus(String value, String description) {
		this.value = value;
		this.description = description;
	}

	public static AuditStatus getAuditStatusValue(String value) {
		if (null == value)
			return null;
		for (AuditStatus _enum : AuditStatus.values()) {
			if (value.equals(_enum.getValue()))
				return _enum;
		}
		return null;
	}
	
	public static AuditStatus getAuditStatusDescription(String description) {
		if (null == description)
			return null;
		for (AuditStatus _enum : AuditStatus.values()) {
			if (description.equals(_enum.getDescription()))
				return _enum;
		}
		return null;
	}
	
	/**
	 * 获取值
	 * @return value
	 */
	public String getValue() {
		return value;
	}

	/**
     * 获取描述信息
     * @return description
     */
	public String getDescription() {
		return description;
	}
}
